//
//  HomePageWebViewTableViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/8/31.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "HomePageWebViewTableViewCell.h"
#import "Content.h"
#import "NSString+Vali.h"
#import "UIImageView+WebCache.h"

@interface HomePageWebViewTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *image;

@end

@implementation HomePageWebViewTableViewCell

- (void)setArray:(NSArray<Content *> *)array {
    _array = array;
    [self.image sd_setImageWithURL:[NSURL URLWithString:[NSString imageWebWithStr:_array[0].pic]] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
    }];
    [self reloadInputViews];
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
